package com.KKd.mapper;

import com.KKd.pojo.Diary;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 14587
 * @date 2020/11/10 14:57
 */
public interface DiaryMapper {
    //添加日记
    int addSelfDiary(Diary diary);
    //根据id删除日记
    int deleteDiaryById(@Param("diaryId") int diaryId);
    //修改日记
    int updateDiary(Diary diary);
    //查询日记
    List<Diary> queryDiaries();
}
